home *** CD-ROM | disk | FTP | other *** search
- /**********************************************************************
- *
- * CustomGetFile Dialog Demo
- *
- * AppGlobals.h
- *
- * Written in CodeWarrior Gold 5.5
- * August 31, 1995
- *
- * Copyright © 1995 Carl B. Constantine
- * Some portions Copyright © 1995 MetroWerks, Inc.
- * Some portions Copyright © 1995 Apple Computer, Inc.
- *
- **********************************************************************/
-
- /*------------------------------------------------------------------
- #
- # File History
- #
- # Date Description of Change
- # ---- ---------------------
- # Aug 31/93 — Original creation of file
- #
- #
- -------------------------------------------------------------------*/
-
- #pragma once
-
- /*============================ Constants ==============================*/
-
- #define kDITop 0x0050 /* top coord for disk init dialog */
- #define kDILeft 0x0070 /* left coord for disk init dialog */
- #define NIL 0L /* NIL or NULL Pointer type */
- #define MOVE_TO_FRONT (WindowPtr) -1L /* Constant for ToolBox Calls */
-
-
- /* define faster and better HiWord & LoWord Macros for convenience */
-
- #define HiWrd(aLong) (((aLong) >> 16) & 0xFFFF)
- #define LoWrd(aLong) ((aLong) & 0xFFFF)
-
-
- #ifdef _Main_Module_
- #define SCOPE /*GLOBAL*/
- #else
- #define SCOPE extern
- #endif
-
- /*
- there's a trick here:
-
- if _Main_Module_ is defined, and it's only defined in Main.c,
- then SCOPE is a comment and the variables are defined.
-
- if _Main_Module_ is undefined, then SCOPE becomes the keyword
- extern and these variables are declared.
-
- Thus, you can use this file in any file that needs to access
- the application's globals. There's no need for an "extern.h"
-
- */
-
- /*========================= Global variables: ===============================*/
-
- SCOPE Boolean gQuitting,
- gInBackground;
-
- SCOPE RgnHandle gCursorRgn;
-
- /*============================ End of File ===================================*/
-
- #undef _Main_Module_
-